<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	String land_code		= StringUtil.nvl(request.getParameter("land_code"));

	HashMap param = new HashMap();
	param.put("land_code", land_code);
	param.put("room_type", "VP");		//추천:VP, 일반:GE

	HomeDAO dao = new HomeDAO();

	//추천호텔
	HashList vpList = dao.selectHotelList(param);

	//일반호텔
	param.put("room_type", "GE");		//추천:VP, 일반:GE
	HashList geList = dao.selectHotelList(param);

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= HOME_NAME %></title>
<style type="text/css">
</style>
<link href="../css/home.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <%@ include file="/home/include/top_menu.jsp" %>
  <tr>
    <td valign="top" align="center" class="sub_con"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <!-- 좌측 네비 시작-->
        <%@ include file="/home/include/left_menu.jsp" %>
        <!-- 좌측 네비 끝-->
        <td width="50"></td>
        <!-- 컨텐츠 시작-->
        <td valign="top" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../images/sub/02_title_01.gif" alt="할인호텔" width="99" height="31" /><img src="../images/sub/02_title_sub.gif" height="18" /></td>
                <td align="right" valign="bottom"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5"><img src="../images/sub/sub_line.gif"  height="5" /></td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <%-- <td class="sub_title"><img src="../images/sub/02_title_txt_01_<%=land_code %>.gif" width="84" height="27" /></td> --%>
            <td class="sub_title"><%= menu_name %></td>
          </tr>
<%	if (vpList.size() > 0) { %>

          <tr>
            <td height="30"></td>
          </tr>

          <tr>
            <td class="sub_tab_line"><img src="../images/sub/02_tab.gif" alt="추천호텔" width="99" height="30" /></td>
          </tr>

	<%	for (int i = 0; i < vpList.size(); i++) { %>
          <tr>
            <td height="155"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="212"><a href="./hotelDetail.jsp?hotel_id=<%= vpList.get("hotel_id",i) %>&land_code=<%= land_code %>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id%>"><img src="<%= vpList.get("img_path_00", i) %>" width="212" height="137"/></a></td>
                <td valign="top" class="thumb_txt2">
                	<a href="./hotelDetail.jsp?hotel_id=<%= vpList.get("hotel_id",i) %>&land_code=<%= land_code %>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id%>"><span class="thumb_txt4"><%= vpList.get("hotel_kor_name", i) %></span></a> <span class="remark"><%= vpList.get("hotel_eng_name", i) %></span><br /><br />
                  - 주 소 : <%= vpList.get("addr", i) %> <br />
                  - 전 화 : <%= vpList.get("tel_no", i) %> <br />
                  - 등 급 : <%= vpList.get("hotel_grade",i) %><br/>
          <%	if (!"".equals(vpList.get("location",i))) { %>
                  - 프로모션 : <span  style="color:purple"><%= vpList.get("location", i) %></span></td>
          <%	} %>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="sub_bg_line"></td>
          </tr>
	<%	} %>


<%	} %>
          <tr>
          	<td height="30"></td>
          </tr>
          <tr>
            <td class="sub_tab_line"><img src="../images/sub/02_tab_01.gif" alt="일반호텔" width="99" height="30" /></td>
          </tr>

	<%	for (int i = 0; i < geList.size(); i++) { %>
          <tr>
            <td height="155"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="212"><a href="./hotelDetail.jsp?hotel_id=<%= geList.get("hotel_id",i) %>&land_code=<%= land_code %>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id%>"><img src="<%= geList.get("img_path_00", i) %>" width="212" height="137" /></a></td>
                <td valign="top" class="thumb_txt2">
                	<a href="./hotelDetail.jsp?hotel_id=<%= geList.get("hotel_id",i) %>&land_code=<%= land_code %>&pmenu_id=<%=pmenu_id %>&menu_id=<%=menu_id%>"><span class="thumb_txt4"><%= geList.get("hotel_kor_name", i) %></a></span> <span class="remark"><%= geList.get("hotel_eng_name", i) %></span><br /><br />
                  - 주 소 : <%= geList.get("addr", i) %> <br />
                  - 전 화 : <%= geList.get("tel_no", i) %><br />
                  - 등 급 : <%= geList.get("hotel_grade",i) %><br/>
			<%	if (!"".equals(geList.get("location",i))) { %>
                  - 프로모션 : <span  style="color:purple"><%= geList.get("location", i) %></span>
            <%	} %>
                </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="sub_bg_line""></td>
          </tr>
	<%	} %>

          <tr>
          	<td height="80"></td>
          </tr>
        </table></td>
        <!-- 컨텐츠 끝-->
      </tr>
    </table></td>
  </tr>
  <%@ include file="/home/include/footer.jsp" %>
</table>
</body>
</html>

